package db

type Db_GameServerInfo struct {
	Id               string `db:"id"`
	GrowthfundBuynum string `db:"growthfund_buynum"`
	OpenServertime   int    `db:"open_servertime"`
	OpenActiveflag   int    `db:"open_activeflag"`
	DailyRenewTime   int    `db:"DailyRenewTime"`
}

type Db_Account struct {
	UserName     string `db:"user_name"`
	UserPassword string `db:"user_password"`
	LoginTime    int    `db:"login_time"`
	LogoutTime   int    `db:"logout_time"`
	Ip           string `db:"ip_address"`
	GmLevel      int    `db:"gm_level"`
	Platform     string `db:"platform"`
	IsOnline     int    `db:"is_online"`
	Channel      string `db:"channel"`
	DeviceId     string `db:"device_id"`
	AutoId       int    `db:"auto_id"`
}

type ResPlayerBaseInfo struct {
	DwUin             int32  `db:"dwUin"`
	Energy            int32  `db:"energy"`
	Star              int32  `db:"star"`
	RecoverTime       int32  `db:"recover_time"`
	Diamond           int32  `db:"diamond"`
	Level             int32  `db:"level"`
	Exp               int32  `db:"exp"`
	StartOrderId      string `db:"start_order_id"`
	MusicCode         int32  `db:"music_code"`
	Guild             int32  `db:"guild"`
	PackUnlockCount   int32  `db:"pack_unlock_count"`
	LastPlayTime      int32  `db:"last_play_time"`
	EnergyBuyCount    int32  `db:"EnergyBuyCount"`
	UserName          string `db:"user_name"`
	LoginTime         int32  `db:"login_time"`
	LogoutTime        int32  `db:"logout_time"`
	Todayolinetime    int32  `db:"todayolinetime"`
	Rolecreatetime    int32  `db:"rolecreatetime"`
	EmitOrderCnt      int32  `db:"EmitOrderCnt"`
	DailyRenewTime    int32  `db:"DailyRenewTime"`
	NoAd              int32  `db:"NoAd"`
	ChampshipsGroupID int32  `db:"ChampshipsGroupID"`
	LastChampGroupID  int32  `db:"LastChampGroupID"`
	FaceBookId        string `db:"FaceBookId"`
}

type SqlKeyValueStruct struct {
	DwUin int32  `db:"dwUin"`
	Keys  string `db:"ReqKeys"`
	Vals  string `db:"ReqVals"`
}
type SqlEmitUnlockStruct struct {
	DwUin     int32  `db:"dwUin"`
	Value     string `db:"EmitUnlockDat"`
	RenewTime int32  `db:"RenewTime"`
}

type SqlPackStruct struct {
	DwUin     int32  `db:"dwUin"`
	MPackData string `db:"mPackData"`
}

type SqlChessStruct struct {
	DwUin           int32  `db:"dwUin"`
	MChessData      string `db:"mChessData"`
	MChessColorData string `db:"mChessColorData"`
}

type SqlGiftStruct struct {
	DwUin     int32  `db:"dwUin"`
	MGiftData string `db:"mGiftData"`
}

type SqlOrderStruct struct {
	DwUin            int32  `db:"dwUin"`
	FinishOrderCount int32  `db:"finishOrderCount"`
	FinishOrderTime  int32  `db:"finishOrderTime"`
	MOrderData       string `db:"mOrderData"`
	RenewTime        int32  `db:"RenewTime"`
}

type SqlVersionStruct struct {
	Id        int32 `db:"id"`
	StartTime int32 `db:"start_time"`
	CloseTime int32 `db:"close_time"`
	IsClose   int32 `db:"is_close"`
}

type SqlChestStruct struct {
	DwUin           int32 `db:"dwUin"`
	ChestID         int32 `db:"ChestID"`
	UnlockStartTime int32 `db:"UnlockStartTime"`
}

type SqlEmitStruct struct {
	DwUin          int32  `db:"dwUin"`
	MEmitMergeData string `db:"mEmitMergeData"`
	MEmitCountData string `db:"mEmitCountData"`
	MEmitTimeData  string `db:"mEmitTimeData"`
}

type SqlDecorateStruct struct {
	DwUin         int32  `db:"dwUin"`
	MDecorateData string `db:"mDecorateData"`
	MFinishList   string `db:"mFinishList"`
}

type SqlLevelUpPackStruct struct {
	DwUin      int32 `db:"dwUin"`
	CurBuyedLv int32 `db:"CurBuyedLv"`
}

type SqlGrowthFundStruct struct {
	DwUin    int32  `db:"dwUin"`
	CurBuyLv string `db:"CurGetLv"`
	IsBuy    int32  `db:"IsBuy"`
}

type SqlSupermeGiftStruct struct {
	DwUin int32 `db:"dwUin"`

	IsBuy           int32 `db:"IsBuy"`
	NoAdStartTime   int32 `db:"NoAdStartTime"`
	NoAdEndTime     int32 `db:"NoAdEndTime"`
	StorgeStartTime int32 `db:"StorgeStartTime"`
	StorgeEndTime   int32 `db:"StorgeEndTime"`
}

type SqlDailyTaskStruct struct {
	DwUin             int32  `db:"dwUin"`
	StartDailySvrTime int32  `db:"StartDailySvrTime"`
	StartWeekySvrTime int32  `db:"StartWeekySvrTime"`
	NowSortId         int32  `db:"NowSortId"`
	WeekyActive       int32  `db:"WeekyActive"`
	NowTaskProgress   int32  `db:"NowTaskProgress"`
	TodayTaskList     string `db:"TodayTaskList"`
}

type SqlNotify7DayLoginData struct {
	DwUin          int32 `db:"dwUin"`
	StartSvrTime   int32 `db:"StartSvrTime"`
	GetIndex       int32 `db:"GetIndex"`
	LastGetTime    int32 `db:"LastGetTime"`
	MonthScore     int32 `db:"MonthScore"`
	MonthStartTime int32 `db:"MonthStartTime"`
	IsCallBack     int32 `db:"IsCallBack"`
}

type SqlNotify7DayCallbackData struct {
	DwUin        int32 `db:"dwUin"`
	StartSvrTime int32 `db:"StartSvrTime"`
	GetIndex     int32 `db:"GetIndex"`
	LastGetTime  int32 `db:"LastGetTime"`
}

type SqlPetHomeData struct {
	DwUin              int32  `db:"dwUin"`
	InterActEndTime    int32  `db:"InterActEndTime"`
	NestId             int32  `db:"NestId"`
	OrnamentsId        int32  `db:"OrnamentsId"`
	CurInterActUin     int32  `db:"CurInterActUin"`
	MiniGameResult     int32  `db:"MiniGameResult"`
	SelfWorkTime       int32  `db:"SelfWorkTime"`
	OtherWorkTime      int32  `db:"OtherWorkTime"`
	UnlockPetNest      string `db:"UnlockPetNest"`
	UnlockPetOrnaments string `db:"UnlockPetOrnaments"`
	UnlockPetEmotion   string `db:"UnlockPetEmotion"`
	AtHome             int32  `db:"AtHome"`
	UnlockDecorateList string `db:"UnlockDecorateList"`
	SelectDecorateMap  string `db:"SelectDecorateMap"`
	Mood               int32  `db:"Mood"`
}

type SqlPetHomeInterAct struct {
	DwUin           int32 `db:"dwUin"`
	TargetUin       int32 `db:"TargetUin"`
	InterActEndTime int32 `db:"InterActEndTime"`
	AutoId          int32 `db:"auto_id"`
}

type SqlPlayerChampionData struct {
	DwUin             int32  `db:"dwUin"`
	IsEnterRank       int32  `db:"IsEnterRank"`
	CurScore          int32  `db:"CurScore"`
	CurMaxScore       int32  `db:"CurMaxScore"`
	CurRank           int32  `db:"CurRank"`
	TodayOpenTime     int32  `db:"TodayOpenTime"`
	ChampshipsGroupID int32  `db:"ChampshipsGroupID"`
	LastChampGroupID  int32  `db:"LastChampGroupID"`
	MaxHistoryScore   int32  `db:"MaxHistoryScore"`
	HistoryData       string `db:"HistoryData"`
}

type SqlPlayerPetData struct {
	DwUin       int32  `db:"dwUin"`
	ImageFrame  int32  `db:"ImageFrame"`
	ImageIcon   int32  `db:"ImageIcon"`
	PetNickName string `db:"PetNickName"`
	UnlockFrame string `db:"UnlockFrame"`
	UnlockIcon  string `db:"UnlockIcon"`
}
type SqlMileStoneStruct struct {
	DwUin              int32  `db:"dwUin"`
	MileStoneScore     int32  `db:"MileStoneScore"`
	StartMileStoneTime int32  `db:"StartMileStoneTime"`
	MileStoneTaskList  string `db:"MileStoneTaskList"`
}

type SqlSvrGlobalStruct struct {
	Id                      int32  `db:"Id"`
	StartMileStoneSvrTime   int32  `db:"StartMileStoneSvrTime"`
	StartChampshipsSvrTime  int32  `db:"StartChampshipsSvrTime"`
	InsertChampshipsSvrTime int32  `db:"InsertChampshipsSvrTime"`
	WaitToRank              string `db:"WaitToRank"`
	Limit4CardExclude       string `db:"Limit4CardExclude"`
	Limit5CardExclude       string `db:"Limit5CardExclude"`
	CurChampshipsId         int32  `db:"CurChampshipsId"`
	LastChampshipsId        int32  `db:"LastChampshipsId"`
	Limit4Card              int32  `db:"Limit4Card"`
	Limit5Card              int32  `db:"Limit5Card"`
	LimitCardSwapTime       int32  `db:"LimitCardSwapTime"`
	OpenSvrTime             int32  `db:"OpenSvrTime"`
}

type SqlChampionshipsStruct struct {
	CurChampshipsId   int32  `db:"CurChampshipsId"`
	GroupRankData     string `db:"GroupRankData"`
	ChampshipsGroupID int32  `db:"ChampshipsGroupID"`
	GroupActive       int32  `db:"GroupActive"`
}

type SqlIllustrateStruct struct {
	DwUin          int32  `db:"dwUin"`
	IllustrateType int32  `db:"IllustrateType"`
	Category       string `db:"Category"`
	ItemInfoStr    string `db:"ItemInfoStr"`
	IllustratedID  int32  `db:"IllustratedID"`
}

type SqlShopInfoStruct struct {
	DwUin                  int32  `db:"dwUin"`
	EnergyAdCount          int32  `db:"EnergyAdCount"`
	EnergyRenewTime        int32  `db:"EnergyRenewTime"`
	DailyRenewTime         int32  `db:"DailyRenewTime"`
	BuyEnergyTime          int32  `db:"BuyEnergyTime"`
	MShopTimeBuyData       string `db:"mShopTimeBuyData"`
	MShopSaleBuyData       string `db:"mShopSaleBuyData"`
	MPackBuyData           string `db:"mPackBuyData"`
	MItemRenewTimes        int32  `db:"ItemRenewTimes"`
	MPackRenewTimes        string `db:"mPackRenewTimes"`
	MSpecialOfferBuyData   string `db:"MSpecialOfferBuyData"`
	MUISpecialOfferBuyData string `db:"MUISpecialOfferBuyData"`
	MFreePackBuyData       string `db:"MFreePackBuyData"`
	MDiamondFirstBuyData   string `db:"MDiamondFirstBuyData"`
}

type SqlEmailStruct struct {
	DwUin         int32  `db:"dwUin"`
	EmailId       int32  `db:"mail_id"`
	Sender        string `db:"sender"`
	Title         string `db:"title"`
	Content       string `db:"content"`
	CurrencyCount int32  `db:"currency_count"`
	CurrencyInfo  string `db:"currency_info"`
	ItemCount     int32  `db:"item_count"`
	ItemInfo      string `db:"item_info"`
	SendTime      int32  `db:"send_time"`
	RecvTime      int32  `db:"recv_time"`
	Status        int32  `db:"state"`
	Type          int32  `db:"type"`
	RewardType    string `db:"reward_type"`
	RewardId      string `db:"reward_id"`
	RewardCount   string `db:"reward_count"`
	LinkUrl       string `db:"LinkUrl"`
}

type SqlCompensateStruct struct {
	DeviceId      string `db:"DeviceId"`
	IsSendEmail   int32  `db:"IsSendEmail"`
	DecorationCnt int32  `db:"DecorationCnt"`
	ChargeCnt     string `db:"ChargeCnt"`
	AutoId        string `db:"auto_id"`
}

type SqlLimitPassportStruct struct {
	DwUin        int32 `db:"dwUin"`
	ActiveID     int32 `db:"ActiveID"`
	StartSvrTime int32 `db:"StartSvrTime"`
	EndSvrTime   int32 `db:"EndSvrTime"`
	Status       int32 `db:"Status"`
	Star         int32 `db:"Star"`
	IsPay        int32 `db:"IsPay"`
	CurFreeLv    int32 `db:"CurFreeLv"`
	CurPayLv     int32 `db:"CurPayLv"`
	CurSvrTime   int32 `db:"CurSvrTime"`
	ConfigActId  int32 `db:"ConfigActId"`
}

type SqlCardCollectStruct struct {
	DwUin             int32  `db:"dwUin"`
	ActiveID          int32  `db:"ActiveID"`
	StartSvrTime      int32  `db:"StartSvrTime"`
	EndSvrTime        int32  `db:"EndSvrTime"`
	Fragment          int32  `db:"fragment"`
	CardInfo          string `db:"CardInfo"`
	CardRewardInfo    string `db:"CardRewardInfo"`
	MasterCards       string `db:"MasterCards"`
	CurSvrTime        int32  `db:"CurSvrTime"`
	FinalReward       int32  `db:"FinalReward"`
	Universal         int32  `db:"Universal"`
	RenewSvrTime      int32  `db:"RenewSvrTime"`
	RenewExchangeTime int32  `db:"RenewExchangeTime"`
	RenewRequestTime  int32  `db:"RenewRequestTime"`

	ConfigActId int32 `db:"ConfigActId"`
}

type SqlExchangeCardStruct struct {
	SenderId        int32  `db:"SenderId"`
	ReceiveId       int32  `db:"ReceiveId"`
	GroupId         int32  `db:"GroupId"`
	ApplicateStatus int32  `db:"ApplicateStatus"`
	StartTime       int32  `db:"StartTime"`
	EventType       int32  `db:"EventType"`
	EventParam      string `db:"EventParam"`
	ConfigActId     int32  `db:"ConfigActId"`
	AutoId          int32  `db:"auto_id"`
}

type SqlExchangeCardReqIncStruct struct {
	StartTime int32 `db:"StartTime"`
	AutoId    int32 `db:"auto_id"`
}
type SqlLimitPromotionStruct struct {
	DwUin        int32 `db:"dwUin"`
	ActiveID     int32 `db:"ActiveID"`
	StartSvrTime int32 `db:"StartSvrTime"`
	EndSvrTime   int32 `db:"EndSvrTime"`
	IsPay        int32 `db:"IsPay"`
	CurSvrTime   int32 `db:"CurSvrTime"`
	ConfigActId  int32 `db:"ConfigActId"`
}

type SqlLimitInfinitePackStruct struct {
	DwUin        int32 `db:"dwUin"`
	ActiveID     int32 `db:"ActiveID"`
	StartSvrTime int32 `db:"StartSvrTime"`
	EndSvrTime   int32 `db:"EndSvrTime"`
	CurGear      int32 `db:"CurGear"`
	CurSvrTime   int32 `db:"CurSvrTime"`
	ConfigActId  int32 `db:"ConfigActId"`
}

type SqlPlayerProfileStruct struct {
	DwUin       int32  `db:"dwUin"`
	ImageFrame  int32  `db:"ImageFrame"`
	ImageIcon   int32  `db:"ImageIcon"`
	NickName    string `db:"NickName"`
	PicURL      string `db:"PicURL"`
	UnlockFrame string `db:"UnlockFrame"`
	UnlockIcon  string `db:"UnlockIcon"`
}

type SqlPigDetailInfoStruct struct {
	DwUin        int32 `db:"dwUin"`
	PigType      int32 `db:"PigType"`
	StartSvrTime int32 `db:"StartSvrTime"`
	EndSvrTime   int32 `db:"EndSvrTime"`
	CurDiamonds  int32 `db:"CurDiamonds"`
	CurSvrTime   int32 `db:"CurSvrTime"`
	CurGetLv     int32 `db:"CurGetLv"`
	PigId        int32 `db:"PigId"`
}

type SqlSevenDayLoginStruct struct {
	DwUin        int32 `db:"dwUin"`
	ActiveID     int32 `db:"ActiveID"`
	StartSvrTime int32 `db:"StartSvrTime"`
	EndSvrTime   int32 `db:"EndSvrTime"`
	LastGetTime  int32 `db:"LastGetTime"`
	CurSvrTime   int32 `db:"CurSvrTime"`
	ConfigActId  int32 `db:"ConfigActId"`
	GetIndex     int32 `db:"GetIndex"`
}

type SqlLimitDataStruct struct {
	DwUin          int32  `db:"dwUin"`
	StartLimitTime int32  `db:"StartLimitTime"`
	EndLimitTime   int32  `db:"EndLimitTime"`
	AddEndTime     int32  `db:"AddEndTime"`
	ParamStr       string `db:"ParamStr"`
}

type SqlChampshipsStruct struct {
	CurChampshipsId   int32  `db:"CurChampshipsId"`
	GroupRankData     string `db:"GroupRankData"`
	ChampshipsGroupID int32  `db:"ChampshipsGroupID"`
	GroupActive       int32  `db:"GroupActive"`
}

type SqlAdPackStruct struct {
	DwUin          int32  `db:"dwUin"`
	RenewDailyTime int32  `db:"RenewDailyTime"`
	Score          int32  `db:"Score"`
	CurTurns       int32  `db:"CurTurns"`
	PackData       string `db:"PackData"`
	RewardInfo     string `db:"RewardInfo"`
}

type SqlSingleDataStruct struct {
	DwUin              int32  `db:"dwUin"`
	NewbiePackBuyID    int32  `db:"NewbiePackBuyID"`
	NewbiePackOpenTime int32  `db:"NewbiePackOpenTime"`
	NoAdCnt            int32  `db:"NoAdCnt"`
	NoAdOpenSvrTime    int32  `db:"NoAdOpenSvrTime"`
	WatchAdCnt         int32  `db:"WatchAdCnt"`
	WatchAdOpenTime    int32  `db:"WatchAdOpenTime"`
	LastWatchAdCnt     int32  `db:"LastWatchAdCnt"`
	AllPayCnt          string `db:"AllPayCnt"`
}

type SqlChargeStruct struct {
	DwUin    int32  `db:"dwUin"`
	PayTime  int32  `db:"PayTime"`
	PayValue string `db:"PayValue"`
	Autoid   int32  `db:"auto_id"`
}

type SqlFriendStruct struct {
	DwUin        int32  `db:"dwUin"`
	FriendList   string `db:"FriendList"`
	TreasureStar int32  `db:"TreasureStar"`
}

type SqlInviteFriendStruct struct {
	DwUin      int32  `db:"dwUin"`
	GetIndex   int32  `db:"GetIndex"`
	InviteList string `db:"InviteList"`
}

type SqlFriendEventStruct struct {
	DwUin          int32  `db:"dwUin"`
	EventStartTime int32  `db:"EventStartTime"`
	EventType      int32  `db:"EventType"`
	EventParam     string `db:"EventParam"`
	AutoId         int32  `db:"auto_id"`
}

type SqlAddFriendStruct struct {
	SenderId   int32 `db:"SenderId"`
	ReceiverId int32 `db:"ReceiverId"`
	Auto_id    int32 `db:"auto_id"`
}
